//
//  Lookup.h
//  Words2
//
//  Created by Mathieu Tozer on 22/09/06.
//  Copyright 2006 __MyCompanyName__. All rights reserved.
//

//This is where an application should look to define words. 
#import <Cocoa/Cocoa.h>
#import "WordsAppDelegate.h"

@class LanguageMO;
@class DefinitionMO;
@class WordMO;

@interface Lookup : NSObject < LookupMethods >{
}

+ (void)connectWithPorts:(NSArray *)portArray;

//Main API for defining words
//This will ask the lookup instance to define all the words in the dictionaries diven to it, attaching
//blobs of definitions to the words.
//The dictionaries must all be able to be connected to, but double check before asking for the definition.

- (void)defineWords:(NSArray *)words inDictionaries:(NSArray *)dictionaries;
- (void)connectToDictionaries:(NSArray *)dicts;
//- (DefinitionMO *)definitionForWord:(WordMO *)word forCapabilityKey:(NSString *)key;
@end
